<template>
  <a @click="openBrowser" v-bind="$attrs"><slot/></a>
</template>
<script>
import { shell } from 'electron'
export default {
  methods: {
    openBrowser (e) {
      e.preventDefault()
      shell.openExternal(e.currentTarget.href)
    }
  }
}
</script>
